import { request } from "@/utils/service"

// 后台项目付款汇总管理
export function getProjectTotalPayList(data: any) {
  return request({
    url: "/bg/projectTotalPay/getList",
    method: "post",
    data
  })
}

// 后台项目付款管理
export function getProjectPayRecordList(data: any) {
  return request({
    url: "/bg/projectPayRecord/getList",
    method: "post",
    data
  })
}


//
export function getProjectPayRecordsyncRecord(data: any) {
  return request({
    url: "/bg/projectPayRecord/syncRecord",
    method: "post",
    data
  })
}

// 保存或修改
export function saveOrUpdateProjectPayRecord(data: any) {
  return request({
    url: "/bg/projectPayRecord/update",
    method: "post",
    data
  })
}

// 详情
export function getProjectPayRecordById(data: any) {
  return request({
    url: "/bg/projectPayRecord/getDetailById",
    method: "post",
    data
  })
}

// 导入
export function importProjectPayRecord(data: any) {
  return request({
    url: "/bg/projectPayRecord/importPayRecord",
    method: "post",
    data
  })
}

// 下载导入模板
export function downloadImportTemplate() {
  return request({
    url: "/bg/projectPayRecord/downloadImportTemplate",
    method: "post"
  })
}
